package com.qingzhuge.sms.controller;

import com.qingzhuge.common.annotation.ASysLog;
import com.qingzhuge.common.enums.EResourceType;
import com.qingzhuge.controller.BasePkLongController;
import com.qingzhuge.core.annotation.AResource;
import com.qingzhuge.dto.response.ResponseBodyDto;
import com.qingzhuge.sms.dto.request.SysSmsRequestDto;
import com.qingzhuge.sms.dto.response.SysSmsResponseDto;
import com.qingzhuge.sms.entity.SysSms;
import com.qingzhuge.sms.service.ISysSmsService;
import com.qingzhuge.utils.PageUtil;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zero.xiao
 * @description :
 * @date : 2018/9/19 0019 上午 10:11
 * @modified :
 * @since :
 */
@ASysLog(value = "短信平台")
@AResource(name = "短信平台", type = EResourceType.menu, catalog = "系统管理")
@Api(tags = "S短信平台")
@RestController
@RequestMapping("api/sys/auth/sms")
public class SysSmsController extends BasePkLongController<SysSms, ISysSmsService, SysSmsRequestDto, SysSmsResponseDto> {
    @Override
    public ResponseEntity<ResponseBodyDto<PageUtil<SysSmsResponseDto>>> queryPage(@RequestBody SysSmsRequestDto entity) {
        return super.queryPage(entity);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysSmsResponseDto>> get(@PathVariable Long id) {
        return super.get(id);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysSmsResponseDto>> save(@RequestBody SysSmsRequestDto category) {
        return super.save(category);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysSmsResponseDto>> update(@RequestBody SysSmsRequestDto entity) {
        return super.update(entity);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<Object>> delete(@PathVariable Long id) {
        return super.delete(id);
    }
}
